home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95b.txt / 000129_icon-group-sender _Fri Aug 18 15:23:00 1995.msg < prev    next >
Internet Message Format  |  1995-09-18  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Fri, 18 Aug 1995 16:45:17 MST
  2. Message-Id: <9508181523.AA21372@ns1.computek.net>
  3. Mime-Version: 1.0
  4. Content-Length: 1275
  5. Content-Type: text/plain
  6. Content-Transfer-Encoding: 7bit
  7. Date: Fri, 18 Aug 95 15:23 CDT
  8. From: gep2@computek.net
  9. Subject: SNOBOL4 and printing on same line
  10. To: icon-group@cs.arizona.edu
  11. X-Mailer: SPRY Mail Version: 04.00.06.17
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14. >The SNOBOL4 Programming Language, second edition ("green book") on
  15. page 167-168 talk about output associations and carriage control.
  16. In looking at a Fortan manual, if the first character printed on a
  17. line is a '1', then a new page eject is done before printing.  
  18.  
  19. ...true, and depending on the version of SNOBOL4 a person is using, this might 
  20. still be relevant.
  21.  
  22. But the use of the Fortran I/O package was I suspect an expedient in the design 
  23. of the original SNOBOL4, and is something of an anachronism today.  Most of the 
  24. time, SNOBOL4's own formatting capabilities are much easier to use than Fortran 
  25. FORMAT statements are.
  26.  
  27. If you're using SNOBOL4+, at least, you can simply output standard ASCII CR and 
  28. LF control characters as part of your output string, if you wish.  To suppress 
  29. the CR/LF that is automatically added at the end of the output statement, you 
  30. can include a Ctrl-Z, or CHAR(26), where you wish the output to end.
  31.  
  32. Of course, if you're using a laser printer or something, it may be easier to 
  33. simply output to the printer in binary mode so you can send the necessary 
  34. printer positioning/formatting/etc commands directly, allowing you basically 
  35. infinite flexibility to do whatever you want.
  36.  
  37. Gordon Peterson
  38. http://www.computek.net/public/gep2/
  39.  
  40.